{% extends 'layout.html' %}


{% block content %}

    <form method="post" class="form-horizontal" novalidate>
        {% csrf_token %}

        {% for field in form %}
            <div class="form-group">
                <label class="col-sm-2 control-label">{{ field.label }}：</label>
                <div class="col-sm-9">
                    {{ field }} <span style="color: red;">{{ field.errors.0 }}</span>
                </div>
            </div>
        {% endfor %}

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-9">
                <input type="submit" class="btn btn-primary" value="提交">
            </div>
        </div>
    </form>
{% endblock %}